using System.Text.Json.Serialization;

namespace ELportal.Common.Models;

public class User : IUser
{
	public uint Id { get; set; }
	public string? Name { get; set; }
	public string? Department { get; set; }
	public string? Position { get; set; }
	public string? Mail { get; set; }
	public string? CellPhone { get; set; }
	public int? WorkPhone { get; set; }
	[JsonIgnore]
	public DateTime? Birthday { get; set; }
	public string? BirthDay => Birthday?.ToString("dd MMM");
	[JsonIgnore]
	public bool Fired {  get; set; }
	[JsonIgnore]
	public string? LdapLogin { get; set; }
}
